<template>
	<view class="register">
		<view class="register-1">
			<text>设置登录密码</text>
		</view>
		<view class="register-2">
			<input v-model="passWord" class="inp-1" type="text" value="" placeholder="8-16位字母.数字组合" />
		</view>
		<view class="register-3">
			<navigator @click="to"  class="button" :url="'./Code?passWord='+passWord+'&telephone='+telephone">下一步</navigator>
		</view>

	</view>
</template>

<script>
	import {
		createNamespacedHelpers
	} from "vuex";
	const {
		mapActions,
		mapState,
		mapMutations
	} = createNamespacedHelpers(
		"user"
	);
	export default {
		onLoad(options) {
			this.telephone=options.telephone
		},
		
		data() {
			return {
				telephone:'',
				passWord:''
			}
		},
		methods: {
			
			to() {
				uni.navigateTo({
					url: "/pages/Register/Code"
				})
			}
		}
	}
</script>

<style scoped lang="scss">
	.register {
		margin-top: 100rpx;
		width: 750rpx;
		height: 600rpx;
		box-sizing: border-box;
		padding: 0rpx 40rpx;

		// background-color: red;
		.register-1 {
			width: 100%;
			height: 40%;
			font-size: 54rpx;
			font-weight: 800;
			text-align: center;
			line-height: 290rpx;
		}

		.register-2 {
			margin-top: 30rpx;
			width: 100%;
			height: 100rpx;
			border-radius: 15rpx;

			.inp-1 {
				width: 100%;
				height: 100%;
				font-size: 26rpx;
				font-weight: 800;
				padding-left: 25rpx;
				border-radius: 15rpx;
				color: #b9b9b9;
				background-color: #f5f5f5;
			}
		}

		.register-3 {
			margin-top: 60rpx;
			width: 100%;
			height: 85rpx;

			.button {
				border-radius: 15rpx;
				text-align: center;
				line-height: 85rpx;
				font-size: 28rpx;
				font-weight: 700;
				width: 100%;
				height: 100%;
				color: #FFFFFF;
				background-color: #3775f6;
			}
		}

	}
</style>
